<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
		<table class="table">
		<tr>
				<th>${proofname}证据列表：</th>
			</tr>
	<c:forEach items="${prooflist}" var="pojo">	
			<tr id="${pojo.id }">
				<th>图片：</th>

				<c:choose>
					<c:when test="${fn:contains(pojo.proofpath, 'attached')}" >
						<td><image width="500" height="500" src="${ctx}${pojo.proofpath }"/></td>
					</c:when>
					<c:otherwise>
						<td><image width="500" height="500" src="data:image/jpg;base64,${pojo.proofpath }"/></td>
					</c:otherwise>
				</c:choose>
				<td><span style="float:right;display:block;"><a class="easyui-linkbutton" style="cursor:pointer;text-decoration:none;padding-left:5px;" onclick=dels1('${pojo.id }')>删除</a></span></td>
            </tr>
   </c:forEach>							
	</table>

	<script>
	function dels1(id){	
	    if (confirm("确认要删除吗？")){
	    	
	        var  url = '${ctx}/lzproof/del';      
	        $.ajax({
	            url:url,
	            data:{ids:id},
	            dataType:'json',
	            success:function(data){
                    if(data.success){
                        $("#"+id).hide();
                        window.proofLoad();
                    }
	            }
	        });
	    }
	}
	
	</script>